import Vue from "vue";
import Vuex from "vuex";
import App from "./App";
import store from "./store";
import router from "./router";
import "./plugins";
import Print from "@/utils/print";
// import sendMsg from "@/utils/websocket";
import { Notification } from 'element-ui';

Vue.use(Print); // 注册
/**
 * @copyright chuzhixin 1204505056@qq.com
 * @description 生产环境默认都使用mock，如果正式用于生产环境时，记得去掉
 */
// if (process.env.NODE_ENV === "production") {
//   const { mockXHR } = require("@/config/static");
//   mockXHR();
// }
// Vue.prototype.sendMsg = sendMsg;
Vue.use(Vuex)
Vue.prototype.Notification = Notification;
Vue.config.productionTip = false;
// import Noticetors from '@/components/Notice/Notice.js';

// Vue.use(Noticetors)
// console.log(store.state.websocket)
// Vue.prototype.$noticetors({
//   noticeshow: store.state.websocket.noticeshow
// })

import WS from '@/utils/websocket.js'
// 人脸识别发送添加老人信息
import FACE from '@/utils/facewebsocket.js'

Vue.prototype.$ws = WS
Vue.prototype.$face = FACE

import Notice from '@/components/Notice/index.js';

Vue.use(Notice)


new Vue({
  el: "#vue-admin-beautiful",
  router,
  store,
  render: (h) => h(App),
});
